'''
Created on May 28, 2012

@author: mupet
'''

from SysLogController import SysLogController
from syslogd.Utils import Utils
from syslogd.configuration.ConfReader import ConfReader
from syslogd.configuration.Configuration import Configuration
from syslogd.gui.LogReader import LogReader
from syslogd.status.ServiceController import ServiceController
from syslogd.status.Status import Status

if __name__ == '__main__':
    fifo = Utils.makeFifo()
    Status.setStatus(ServiceController.sudoStopSyslogd())
    cr = ConfReader(Configuration.getSyslogdConfigurationPath())
    cr.read()
    LogReader(fifo)
    app = SysLogController()
    app.MainLoop()